﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AppFramework.DinosaursParkMes.Process
{
    /// <summary>
    /// 工艺路线字表
    /// </summary>
    [Table("tb_CraftProcess")]
    public class CraftProcessModel : AuditedEntity<int>, ISoftDelete
    {
        /// <summary>
        /// 序号
        /// </summary>
        public int Serialnumber { get; set; }

        /// <summary>
        /// 工艺编号(关联)
        /// </summary>
        public string Craftcode { get; set; }

        /// <summary>
        /// 工序
        /// </summary>
        public string Process { get; set; }

        /// <summary>
        /// 下一道工序
        /// </summary>
        public string Nextprocess { get; set; }

        /// <summary>
        /// 关系
        /// </summary>
        public string Relation { get; set; }

        /// <summary>
        /// 关键工序
        /// </summary>
        public string Keyprocess { get; set; }

        /// <summary>
        /// 显示颜色
        /// </summary>
        public string Showcolor { get; set; }

        /// <summary>
        /// 准备时间
        /// </summary>
        public decimal Readinesstime { get; set; }

        /// <summary>
        /// 等待时间
        /// </summary>
        public decimal Waitingtime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        public bool IsDeleted { get; set; }
        //public CraftProcessModel(int serialnumber,
        //    string craftcode,string process,string nextprocess,string relation,string keyprocess,string showcolor,string remark,decimal readinesstime,decimal waitingtime
        //    ) 
        //{
        //    Serialnumber= serialnumber;
        //    Craftcode= craftcode;
        //    Process= process;
        //    Nextprocess= nextprocess;
        //    Relation= relation;
        //    Keyprocess= keyprocess;
        //    Showcolor= showcolor;
        //    Remark= remark;
        //    Readinesstime = readinesstime;
        //    Waitingtime = waitingtime;
        //}
    }
}
